package com.woniuxy.jwt;

import io.jsonwebtoken.JwtBuilder;
import io.jsonwebtoken.Jwts;
import io.jsonwebtoken.SignatureAlgorithm;

/**
 * @Author: ideaAdmin
 * Class
 * TODO: 创建jwt
 * Date: 2022/2/22:16:05
 * Description:
 */

public class JwtCreate {
    public static void main(String[] args) {
        JwtBuilder testtest = Jwts.builder().setId("1").signWith(SignatureAlgorithm.HS256, "testtest");
        System.out.println(testtest.compact());
    }
}
